/**
 * Created by Admin on 2017/4/17.
 */
function getAjax(indata,onSuccess,onError){
    $.ajax({
        type: "GET",
        url: indata,
        // data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (result) {
           onSuccess(result);
        },
        error: function (msg) {
            onError(msg);
        }
    })

}

